package org.tg.model.user;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.tg.enums.UserType;
import org.tg.model.base.BaseEntity;

/**
 * @Author Glow
 * @Date 2023-06-23 18:06:37
 * @Description  注册会员信息
 * @Version 1.0
 */
@Data
@ApiModel(description = "User")
@TableName("user")
public class User extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableField("user_type")
    private Integer userType;

    @ApiModelProperty(value = "会员头像")
    @TableField("photo_url")
    private String photoUrl;

    @ApiModelProperty(value = "昵称")
    @TableField("nick_name")
    private String nickName;

    @ApiModelProperty(value = "身份证号码")
    @TableField("id_no")
    private String idNo;

    @ApiModelProperty(value = "性别")
    @TableField("sex")
    private String sex;

    @ApiModelProperty(value = "电话号码")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "备注")
    @TableField("memo")
    private String memo;

    @ApiModelProperty(value = "小程序open id")
    @TableField("open_id")
    private String openId;

    @ApiModelProperty(value = "微信开放平台unionID")
    @TableField("union_id")
    private String unionId;

    @ApiModelProperty(value = "是否新用户")
    @TableField("is_new")
    private Integer isNew;

}